import React from 'react'
import { BrowserRouter, Routes, Route, Navigate,NavLink } from 'react-router-dom'
import About from '../components/about'
import Home from '../components/home'

export default function index() {
	return (
		<BrowserRouter>
      <NavLink to="/home">主界面</NavLink> |  <NavLink to="/about">关于</NavLink>
			<Routes>
				<Route path="/" element={<Navigate to="/home"></Navigate>}></Route>
				<Route path="/about" element={<About />}></Route>
				<Route path="/home" element={<Home />}></Route>
			</Routes>
		</BrowserRouter>
	)
}
